#ifndef TEXTURESLOT_H
#define TEXTURESLOT_H

#include <QLabel>
#include <material/materialmanager.h>

class cceTextureSlot : public QLabel
{
	Q_OBJECT
private:
	cceMaterialTexture	*_texture;
	bool								_clicked;

protected:
	void dragEnterEvent(QDragEnterEvent *event);
	void dropEvent(QDropEvent *event);
	void mousePressEvent(QMouseEvent *event);
	void mouseReleaseEvent(QMouseEvent *event);
	void enterEvent(QEvent *event);
	void leaveEvent(QEvent *event);

public:
	cceTextureSlot (QWidget* parent = 0);
	virtual ~cceTextureSlot ();

	void SetTexture (cceMaterialTexture* texture);
	cceMaterialTexture* GetTexture () const;

signals:
	void ShowTexture (cceMaterialTexture* texture);
};


#endif // TEXTURESLOT_H

